﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Mecanica
{
    public partial class Principal : Form
    {
        public Principal()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                Dominio.Entidades.Core.Usuario user = new Dominio.Entidades.Core.Usuario();
                user.Nome = "Danimar";
                //Repositório.RepositorioUsuario repositorio = new Repositório.RepositorioUsuario();
                //repositorio.Salvar(user);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            Repositório.RepositorioGenerico<Dominio.Entidades.Core.Usuario> rep = new Repositório.RepositorioUsuario();
        }
    }
}
